<template>
	<view class="container">
		<view class="topbox">
			<image class="topbg" src="/pages/my/static/tongji.png" mode=""></image>
			<view class="topcon">
				<view class="toptitle">
					我的通政
				</view>
				<view class="qiannum">
					{{info.ourScoreA}}
				</view>
				<view class="bottom">
					<image class="bottom_icon" src="/pages/my/static/zs.png" mode=""></image>
					今日通政参考价值1通政等于{{info.refer}}元
				</view>
			</view>

		</view>
		<view class="infobox">
			<view class="boxrow flex" style="border-bottom: 1rpx solid rgba(254, 113, 42, .2);">
				<view class="boxcol" style="border-right: 1rpx solid rgba(254, 113, 42, .2);">
					<view class="word">
						平台通政总量
					</view>
					<view class="num">
						{{info.totalScoreA}}
					</view>
				</view>
				<view class="boxcol">
					<view class="word">
						通政释放总量
					</view>
					<view class="num">
						{{Number(info.passFree).toFixed(2)}}
					</view>
				</view>
			</view>
			<view class="boxrow flex">
				<view class="boxcol" style="border-right: 1rpx solid rgba(254, 113, 42, .2);">
					<view class="word">
						通政销毁总量
					</view>
					<view class="num">
						{{Number(info.passDestory).toFixed(2)}}
					</view>
				</view>
				<view class="boxcol">
					<view class="word">
						通政当日销毁
					</view>
					<view class="num">
						{{info.toDatPassDestory}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getMerchantData} from '@/api/my.js'
	export default {
		data() {
			return {
				info:{}
			};
		},
		onLoad() {
			getMerchantData().then(res=>{
				// console.log(res.data.data)
				this.info=res.data.data
			})
		}
	}
</script>

<style lang="less">
	.container {
		padding: 40rpx 30rpx 20rpx;

		.topbox {
			width: 690rpx;
			height: 274rpx;
			position: relative;
			color: #fff;

			.topbg {
				position: absolute;
				top: 0;
				left: 0;
				width: 690rpx;
				height: 274rpx;
			}

			.topcon {
				height: 274rpx;
				position: absolute;
				top: 0;

				.toptitle {
					font-size: 25rpx;
					padding-top: 45rpx;
					padding-left: 45rpx;
					margin-bottom: 20rpx;
				}

				.qiannum {
					font-family: Impact;
					font-size: 50rpx;
					padding-left: 45rpx;
				}

				.bottom {
					display: flex;
					align-items: center;
					margin-top: 50rpx;
					padding-left: 45rpx;
					font-size: 25rpx;
					.bottom_icon{
						width: 41rpx;
						height: 37rpx;
						margin-right: 13rpx;
					}
				}
			}
		}

		.infobox {
			margin-top: 34rpx;
			background: #fff;
			box-shadow: 0px 1rpx 24rpx 0px rgba(24, 24, 24, 0.08);
			border-radius: 25rpx;
			padding: 57rpx 49rpx 45rpx 54rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			
			.boxrow {
				justify-content: space-between;
				text-align: center;
				
				.boxcol{
					width: 293rpx;
					height: 240rpx;
					display: flex;
					flex-direction: column;
					justify-content: center;
				}
				.word {
					font-size: 24rpx;
					color: #a3a2a1;
					margin-bottom: 16rpx;
				}

				.num {
					color: #f95a0b;
					font-size: 40rpx;
					font-family: Impact;
				}
			}
		}
	}
</style>
